<? /* license

BilugCMS (http://www.bilug.it) - Content Management System for dynamic web sites
Copyright (C) 2005-2008  Federico Villa and Alessio Loro Piana

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

For reference, contact bilugcms@vilnet.it


license */ ?>
<?session_start();
 if (!isset($_SESSION['tuxu']) or $_SESSION['tuxu']<=0) {?>
<form name="login" method="post" action="../areariservata/guardian.php">
<div class="blocco">
	<h3><?=$titolo?></h3>
   <p>E-mail</p>
   <p><input type="text" name="Nomeutente" size="15" id="textlato"/></p>
   <p>Password</p>
   <p><input type="password" name="Parola" size="15" id="textlato"/></p>
   <p><input type="submit" value="Login" id="bottomlato"/></p>
</div>
</form>
<?}
else
{?>
<div class="blocco">
	<h3><?=$titolo?></h3>
<?	$str="select nome from anagrafica where ID='".$_SESSION['tuxu']."'";
   $risultato=mysql_query($str);
   if (mysql_num_rows($risultato)>0)
   $control=mysql_fetch_row($risultato); 
   echo "<p>Utente: $control[0]</p>";?>
	<p><a href="?pag=../areautenti/area.php">Menu Utente</a></p>
	<p><a href="?pag=../areautenti/area.php&amp;pag2=../areautenti/exit.php">Esci</a></p>
</div>
<?}?>
